package com.vhall.component.entity.rbac.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author longzhen.gong
 * @date 2021/6/10 17:14
 */
@Data
public class AccessVO implements Serializable {


    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "权限名称")
    private String title;

    @ApiModelProperty(value = "权限码")
    private String rule;

    @ApiModelProperty(value = "路径")
    private String url;

    @ApiModelProperty(value = "状态 0:正常 1:禁止")
    private Integer status;

    @ApiModelProperty(value = "类型 0：显示 1：操作")
    private Integer type;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    private LocalDateTime createdAt;


    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @JsonProperty("deleted_at")
    private LocalDateTime deletedAt;
}
